package com.thciwei.mailserver;

import com.thciwei.proj.bean.MailConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;


@SpringBootApplication
public class MailserverApplication {

    public static void main(String[] args) {
        SpringApplication.run(MailserverApplication.class, args);
    }

    @Bean
    Queue queue() {
        //return new Queue("thciwei.mail.welcome");
        return new Queue(MailConstants.MAIL_QUEUE_NAME);
    }
}
